package com.woniu.controller;

import com.woniu.entity.ClassInfo;
import com.woniu.mapper.ClassInfoMapper;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Classname ClassInfoController
 * @Description TODO
 * @Date 2025/8/5 17:16
 * @Created by pc
 */
@RestController
@RequestMapping("/class") // RequestMapping 可以挂在类上 也可以挂在方法上
public class ClassInfoController {

    @Resource
    private ClassInfoMapper classInfoMapper;
    @RequestMapping("/findAll")
    public List<ClassInfo> findAll(){
        return classInfoMapper.findAll();
    }
}
